home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Utilities / PowerWindows / Tools / ReadMe < prev    next >
Encoding:
Text File  |  1997-05-17  |  5.3 KB  |  134 lines

  1. ___________________________________________________________________________
  2. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  3.                      WindowSnoopy V0.6 by Georg Steger
  4. ___________________________________________________________________________
  5. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  6.  
  7.  
  8. This little Tool every time that a Window opens shows you who opened it
  9. (the Name of the Task). Should help you a lot when configuring Power-
  10. Windows ("ICONIFYTASK" Option).
  11.  
  12. Usage: Start it a with a Double-Click. You can quit it with CTRL+C. If
  13.        another Program has patched OpenWindow and/or OpenWindowTagList
  14.        while WindowSnoopy was active quitting will fail (Screen flashes)!
  15.  
  16.         
  17.        *** WindowSnoopy is Freeware! ***
  18.  
  19.  
  20.       
  21. ___________________________________________________________________________
  22. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯      
  23.                      ScreenSnoopy V0.6 by Georg Steger
  24. ___________________________________________________________________________
  25. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  26.  
  27.  
  28. This little Tool every time that a Screen opens shows you who opened it
  29. (the Name of the Task). Should help you a lot when configuring Power-
  30. Windows ("TASK" Option).
  31.  
  32. Usage: Start it a with a Double-Click. You can quit it with CTRL+C. If
  33.        another Program has patched OpenScreen and/or OpenScreenTagList
  34.        while WindowSnoopy was active quitting will fail (Screen flashes)!
  35.  
  36.  
  37.        *** ScreenSnoopy is Freeware! ***
  38.  
  39.  
  40.  
  41.   
  42.               ________________________                       \<>/
  43.              /                        \              _______ /_ \  _______
  44.              |  S H E L L - T O O L S |              \____  \¯/ |_/  ____/
  45.              \________________________/                \____ ¯ .   ____/
  46.                                                          \___ ... ___/
  47.                                                              \ _ /
  48.                                                            .\// \\/.
  49.                                                             ¯°   °¯
  50. ___________________________________________________________________________
  51. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  52.                      StackAttack V0.5 by Georg Steger
  53. ___________________________________________________________________________
  54. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  55.  
  56.  
  57. Each Program that patches Library-Function increases the amount of Stack
  58. needed by these Functions when they are called. If another Program patches
  59. one of these Functions again the amount of needed Stack is increased again.
  60.  
  61. Example: Commodity "A" patches OpenWindow(). The new Function has some
  62. ¯¯¯¯¯¯¯  Variables on Stack, and therefore increases the Stack-Usage by
  63.          30 Bytes.
  64.  
  65.      Commodity "B" patches OpenWindow() again. Commodity "A" is still
  66.      running. The new Function increases the Stack-Usage by 40 Byte.
  67.  
  68.      --> The overall Stack-Usage increases by (40+30) = 70 Bytes!!
  69.  
  70. Note:    To be true, not all Patches might do that. For example if one
  71. ¯¯¯¯     patches OpenWindow() the following way, the Stack-Usage might
  72.          not be altered:
  73.  
  74.      New Function jumps to a Subroutine (the Variables on Stack are
  75.      used by this Subroutine), returns from it, and jumps to the
  76.      original Function after that.
  77.  
  78. StackAttack patches CreateProc() and CreateNewProc() and alters the
  79. original Stacksize passed to them depending on what Arguments you
  80. supply. The Argument-Template of StackAttack is:
  81.  
  82.     MINSTACK=MIN/N/K,ADDSTACK=ADD/N/K
  83.  
  84. o MINSTACK is the minimum Stack-Size in Bytes a new Process shall get. The
  85.   default of the Operating System is 4096.
  86.  
  87. o ADDSTACK is the amount of Bytes that you want to add to the original
  88.   value.
  89.  
  90.   
  91. Examples:
  92. ¯¯¯¯¯¯¯¯
  93.  
  94. You start a Program that usually uses a Stack-Size of 10000 Bytes:
  95.  
  96. Program     Arguments                   | New Stack Size
  97. ----------------------------------------+-----------------
  98.                                         |
  99. StackAttack MINSTACK=11000              |      11000
  100.                                         |
  101. StackAttack ADDSTACK=200                |      10200
  102.                                         |
  103. StackAttack MINSTACK=13000 ADDSTACK=400 |      13400
  104.                                         |
  105. StackAttack MINSTACK=5000               |      10000
  106.                                         |
  107. StackAttack MINSTACK=5000 ADDSTACK=600  |      10600
  108.                                         |
  109.  
  110.  
  111.  
  112. NOTES:
  113. ¯¯¯¯¯
  114.  
  115. o The Stack-Size of Sub-Tasks (Threads) might not be altered.
  116.   This is because they usually are not created using CreateProc() or
  117.   CreateNewProc() but using CreateTask() from amiga.lib. This Function
  118.   can not be patched as amiga.lib is a Link Library and not a Runtime
  119.   Library!
  120.  
  121. o You should start this Program in the Startup-Sequence. Add it some-
  122.   where after the "SetPatch"-Entry. The Entry should look like this:
  123.  
  124.     run <>NIL: C:StackAttack MINSTACK=5000 ADDSTACK=500
  125.  
  126. o You can quit the Program by sending it a CTRL+C. If another Program
  127.   has patched CreateProc() and/or CreateNewProc() after StackAttack
  128.   quitting will fail.
  129.  
  130. o YOU SHOULD HAVE TO USE THIS PROGRAM ONLY IF YOU ARE RUNNING A LOT
  131.   OF HACKS/COMMODITIES. ANYWAY IT MIGHT HELP IF YOU ENCOUNTER STRANGE
  132.   THINGS/CRASHES/GURUS WITH SOME PROGRAMS WHILE MOST OF THE OTHERS
  133.   WORK FINE.
  134.